package chap06;


import java.util.ArrayList;
import java.util.List;

public class StuApp {
    static List<Student> list=new ArrayList<>();
    public static void main(String[] args) {
        init();
        double ret=Tools.getAvg(list);
        System.out.println("平均分是"+ret);
        //不及格的学生
        List<Student> stus=Tools.getScore(list);
        System.out.println(stus);
    }



    //数据初始化
    public static void init(){
        list.add(new Student("白","41926081",98));
        list.add(new Student("敬","41926084",85));
        list.add(new Student("亭","41926081",56));
        list.add(new Student("魏","41926022",88));
        list.add(new Student("大","41926010",78));
        list.add(new Student("勋","41926006",45));

    }
}
